
<div id="contentAll2" class="w100">
	<form action="<?php echo base_url('panel/ordenes_trabajo/control_taller'); ?>" method="get" id="frmFiltrosCotiza" 
	class="frmfiltros corner-all8 btn-gray">
		<label for="ffecha1">Fecha del:</label> 
		<input type="text" name="ffecha1" id="ffecha1" value="<?php echo $this->input->get('ffecha1'); ?>" size="10">
		
		<label for="ffecha2">Al:</label> 
		<input type="text" name="ffecha2" id="ffecha2" value="<?php echo $this->input->get('ffecha2'); ?>" size="10"> | 
		
		<input type="submit" name="enviar" value="Enviar" class="btn-blue corner-all">
	</form>
	
	<table class="tblListados corner-all8">
		<tr class="header btn-gray">
			<td>Folio</td>
			<td>Cliente</td>
			<td>Observaciones</td>
			<td colspan="2" class="a-c">Hologramas</td>
			<td>F. Entrada</td>
			<td>F. Salida</td>
			<td>Productos</td>
			<td class="a-c">Opc</td>
		</tr>
<?php foreach($cotiza['cotiza'] as $comp){ 
		$disable = ($comp->terminada_taller == 't'? 'disabled': '');
?>
		<tr>
			<td><?php echo ($comp->serie!=''? $comp->serie.'-': '').$comp->folio; ?></td>
			<td><?php echo $comp->nombre_fiscal; ?></td>
			<td><?php echo $comp->observaciones; ?></td>
			<td class="a-c" style="width: 80px;">
				<input type="text" class="hologrini vpos-int" 
					value="<?php echo $comp->holograma_ini; ?>" data-id="<?php echo $comp->id_ordent; ?>" <?php echo $disable; ?> size="6">
			</td>
			<td class="a-c" style="width: 80px;">
				<input type="text" class="hologrfin vpos-int" 
					value="<?php echo $comp->holograma_fin; ?>" data-id="<?php echo $comp->id_ordent; ?>" <?php echo $disable; ?> size="6">
			</td>
			<td><?php echo $comp->fecha; ?></td>
			<td><?php echo $comp->fecha_salida; ?></td>
			<td>
			<?php
			foreach($cotiza['productos'][$comp->id_ordent] as $prod){
				echo $prod->cantidad.' | '.$prod->nombre.'<br>';
			} 
			?>
			</td>
			<td class="a-c" style="width: 40px;">
				<input type="checkbox" class="chkter" data-id="<?php echo $comp->id_ordent; ?>" value="si" <?php echo $disable.($disable!=''? ' checked': ''); ?>>
			</td>
		</tr>
<?php }?>
	</table>
<?php
//Paginacion
$this->pagination->initialize(array(
		'base_url' 			=> base_url($this->uri->uri_string()).'?'.String::getVarsLink(array('pag')).'&',
		'total_rows'		=> $cotiza['total_rows'],
		'per_page'			=> $cotiza['items_per_page'],
		'cur_page'			=> $cotiza['result_page']*$cotiza['items_per_page'],
		'page_query_string'	=> TRUE,
		'num_links'			=> 1,
		'anchor_class'		=> 'pags corner-all'
));
$pagination = $this->pagination->create_links();
echo '<div class="pagination w100">'.$pagination.'</div>'; 
?>
</div>

<!-- Bloque de alertas -->
<div id="container" style="display:none">
	<div id="withIcon">
		<a class="ui-notify-close ui-notify-cross" href="#">x</a>
		<div style="float:left;margin:0 10px 0 0"><img src="#{icon}" alt="warning" width="64" height="64"></div>
		<h1>#{title}</h1>
		<p>#{text}</p>
		<div class="clear"></div>
	</div>
</div>
<?php if(isset($frm_errors)){
	if($frm_errors['msg'] != ''){ 
?>
<script type="text/javascript" charset="UTF-8">
$(function(){
	create("withIcon", {
		title: '<?php echo $frm_errors['title']; ?>', 
		text: '<?php echo $frm_errors['msg']; ?>', 
		icon: '<?php echo base_url('application/images/alertas/'.$frm_errors['ico'].'.png'); ?>' });
});
</script>
<?php }
}?>
<!-- Bloque de alertas -->
